<?php
$arFwPaths = array(
    'CORE'      => '/opt/http/cms736/trunk/core/',
    'PROTOTYPE' => '/opt/http/cms736/trunk/prototype/',
    'LIBRARY'   => '/opt/http/cms736/trunk/library/',
    'CARCASS'   => '/opt/http/cms736/trunk/tpl/'
);

require_once $arFwPaths['CORE'].'Autoload.php';
require_once $arFwPaths['CORE'].'classes/Config/Interface.php';
require_once $arFwPaths['CORE'].'classes/Config.php';
require_once 'config.php';

require_once 'PHPUnit/Framework.php';

$objAutoload = new Autoload($objConfig);
spl_autoload_register(array($objAutoload, 'load'));

// Подключаем тесты
require_once 't/MyFirstTest.php';
require_once 't/MvcPathTest.php';
require_once 't/MvcPathCorrectorTest.php';
require_once 't/MvcCarcassTest.php';
require_once 't/DbReaderTest.php';
require_once 't/DataPoolTest.php';

/**
 * Все тесты проекта.
 * @author Akulov Denis <akulov.d.g@gmail.com>
 * @since 01.07.2011
 *
 */
class AllTests{

    public static function suite () {
        $suite = new PHPUnit_Framework_TestSuite('PHPUnit');
        $suite->addTestSuite('MyFirstTest');
        $suite->addTestSuite('MvcPathTest');
        $suite->addTestSuite('MvcPathCorrectorTest');
        $suite->addTestSuite('MvcCarcassTest');
        $suite->addTestSuite('DbReaderTest');
        $suite->addTestSuite('DataPoolTest');
        return $suite;
    }
}